//==========================================================================
// Copyright (c) 2000-2008,  Elastos, Inc.  All Rights Reserved.
//==========================================================================

#ifndef __COMMUNICATION_CHANNEL_H__
#define __COMMUNICATION_CHANNEL_H__

#include "commuTypes.h"

#ifdef __cplusplus
extern "C" {
#endif

//Physical channel communication
C_INT ChannelInitPort();
C_INT ChannelSendData(C_VOID *data, C_INT size, C_INT *sentSize);
C_INT ChannelReceiveData(C_VOID *data, C_INT size, C_INT *receivedSize);

int SwitchPhysicalChannel();
int LowerSwitch(int channel);

#ifdef __cplusplus
}
#endif

#endif // __COMMUNICATION_CHANNEL_H__
